package com.example.demo.day0302;

public class Student extends Person implements Move,Study {
    public String school;
    private String privateFiled;
    public Student() {
        System.out.println("use public Student");
    }
    public Student(String school) {
        this.school = school;
        System.out.println("use public Student (String school)");
    }

    private Student(String name,int age){
        this.name = name;
        this.age = age;
        System.out.println("use public Student (String name,int age) ");
    }


    public void showInfo(){

        System.out.println("school is "+this.school);
    }
    public void moveType() {
        System.out.println("move by bike");
    }

    public void studyInfo() {
        System.out.println("study in highschool");
    }
    private void test(String name1){
        System.out.println(name1 + " get a gift");

    }
    public String getSchool(){
        return this.school;
    }
    public void setInfo(String name ,String school ){
        this.name= name;
        this.school =school;
        System.out.println("setInfo(String name ,String school )");
        System.out.println(name + " is in " + school);
    }
}
